package com.qidian.mes.sys.controller;

import com.qidian.mes.sys.service.DictService;
import com.qidian.mes.util.pojo.MESResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 53邹李萍
 * @Company 起点编程
 * @Time 2023/10/24 18:38
 * @Description
 */
@RestController
@CrossOrigin
@RequestMapping("/dict")
public class DictController {
    @Autowired
    private DictService dictService;

    @GetMapping("/get")
    public MESResult get(Long id){

        return dictService.get(id);
    };
}
